//
//  BaseCommondNavTool.m
//  LoanMoney
//
//  Created by gynjobs on 2017/8/29.
//  Copyright © 2017年 cangming. All rights reserved.
//

#import "BaseCommondNavTool.h"

@implementation BaseCommondNavTool
+(id)getInstance{
    static dispatch_once_t once;
    static id instance = nil;
    dispatch_once(&once, ^{
        
        instance = [[BaseCommondNaviController alloc] init];
        
    });
    return instance;
    
}
-(id)init
{
    self = [super init];
    if (self)
    {
        // to do
    }
    
    return self;
}
-(BaseCommondNaviController* ) createNav : (NAV_TYPE) type rootController:(UIViewController *) controller{
    BaseCommondNaviController * navController = nil;
    
    switch (type) {
        case NAV1:
            
            navController = [[BaseCommondNaviController alloc] initWithRootViewController:controller];
            
            break;
            
        case NAV2:
            
            navController = [[BaseCommondNaviController alloc] initWithRootViewController:controller];
            
        default:
            break;
    }
    return navController;
}

@end
